﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int score = 100;
            
            bool yes = true;
            bool no = false;

            string gameName;
            string kong = "";

            float Chinese = 126;
            float Math = 116;
            float English = 128;
            float total = Chinese + Math + English;
            float average = total / 3;

            int number = 365;
            int bai = number / 100;
            int shi = (number % 100) / 10;
            int ge = number % 10;

            Console.WriteLine(score);
            Console.WriteLine(5 + 5);
            Console.WriteLine(10 / 3);
            Console.WriteLine(10.0f / 3);
            Console.WriteLine("总成绩：" + total + "平均成绩" + average);
            Console.WriteLine("百位是：" + bai + "十位是：" + shi + "个位是：" + ge);
            Console.WriteLine("百位是{0}，十位是{1}，个位是{2}", bai, shi, ge);   //占位符

            Console.WriteLine("请输入您的游戏昵称：");
            gameName = Console.ReadLine();

            Console.WriteLine("我的游戏昵称是\"{0}\"" , gameName);

            //加法计算器
            int a;
            int b;

            Console.WriteLine("请输入加数：");
            a = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("请输入被加数：");
            b = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("和 = {0} + {1} = {2}", a, b, a + b);

            Console.ReadKey();
        }
    }
}
